﻿using Abp.AutoMapper;
using Abp.Modules;
using Basefr.Modules;
using System;

namespace Basefr.Runtime
{
    [DependsOn(
        //typeof(AbpRedisCacheModule),
        typeof(AbpAutoMapperModule),
        typeof(Basefr.Module))]
    public class Module : ModuleBase<Module>
    {
        public override void PreInitialize()
        {
            //Configuration.Modules.AbpAutoMapper().Configurators.Add(config =>
            //{
            //    //config.ValidateInlineMaps = false;
            //    //config.CreateMissingTypeMaps = true;
            //});

            Configuration.Caching.ConfigureAll(cache => cache.DefaultSlidingExpireTime = TimeSpan.FromHours(3));  //ABP默认缓存过期时间是1小时，改为3小时
        }
    }
}
